/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sharedObjects;

import java.awt.Dimension;
import java.awt.Point;
import java.io.Serializable;

/**
 * 
 * @author Niclas
 */
public class Field implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 4969013381923622523L;

	private Integer id;
	private Point upperLeftPixels;
	private Point lowerRightPixels;
	private Boolean hitten;
	private Point koordinaten;
	
	public Field(int id, Point upperLeftPixels, Point lowerRightPixels, Point koordinaten,
			boolean hitten) {
		this.id = id;
		this.upperLeftPixels = upperLeftPixels;
		this.lowerRightPixels = lowerRightPixels;
		this.hitten = hitten;
		this.koordinaten = koordinaten;
	}

	public int getId() {
		return id;
	}

	public Point getUpperLeftPixels() {
		return upperLeftPixels;
	}

	public Point getLowerRightPixels() {
		return lowerRightPixels;
	}

	public boolean isHitten() {
		return hitten;
	}

	public Point getKoordinaten() {
		return koordinaten;
	}

	public void setHitten(boolean hitten) {
		this.hitten = hitten;
	}

	public void setKoordinaten(Point koordinaten) {
		this.koordinaten = koordinaten;
	}
}
